package cn.bisoft.java.bean.message;

import cn.bisoft.java.constants.Constants;
import cn.bisoft.java.util.common.ObjectUtil;


import com.hengpeng.common.exception.TransException;

public class ResponseMessageBody extends MessageBody
{

	private String code = Constants.TRANSACTION_RESPONSE_CODE_SUCCESS;

	private String message = Constants.TRANSACTION_RESPONSE_MESSAGE_SUCCESS;

	private ResponseBody body;

	public ResponseMessageBody()
	{
		super();
	}

	public ResponseMessageBody(TransException exception)
	{
		super();
		this.code = exception.getExceptionCode();
		this.message = exception.getExceptionMsg();
	}

	public String getCode()
	{
		return this.code;
	}

	public void setCode(String code)
	{
		this.code = code;
	}

	public String getMessage()
	{
		return this.message;
	}

	public void setMessage(String message)
	{
		this.message = message;
	}

	public ResponseBody getBody()
	{
		return this.body;
	}

	public void setBody(ResponseBody body)
	{
		this.body = body;
	}

	public Object clone() throws CloneNotSupportedException
	{
		return ObjectUtil.byteClone(this);
	}

}
